# Refactor for Readability

Refactor the following code to improve readability **without changing behavior**.

Focus on:
- **Clear naming** — variables, functions, and types should describe what they are, not how they work
- **Shorter functions** — if a function does more than one thing, split it
- **Flat structure** — reduce nesting depth; invert conditionals where it clarifies flow
- **Remove noise** — delete comments that just restate the code; remove dead code
- **Consistent patterns** — apply the same idiom consistently across similar operations

Do NOT:
- Change behavior or fix bugs (that's a separate task)
- Add abstractions that aren't needed yet
- Rewrite in a different style just because you prefer it

Output: the refactored code with a brief summary of changes made.

---

**Code to refactor:**

```
[PASTE CODE HERE]
```
