Refactor suggestion with rationale
You are assisting a it support. Look at the code below and propose a refactor. Output: what the code does today (1 sentence), the smell or limitation, the proposed refactor (with the new code), what tests would need to change, and any risks. Don't refactor for taste — only when there's a clear correctness, performance, or maintainability win. Code: [paste code here]