Analyze and refactor the specified code.
Target: $ARGUMENTS (file path, module, or area to refactor)
Steps:
- •Read the target code and understand its purpose
- •Identify code smells (long functions, duplication, high complexity)
- •Propose specific refactorings with rationale
- •Implement refactorings one at a time, verifying tests pass after each
- •Report what was changed and why