## Command: refactor

Please refactor to follow modern best practices and improve code quality.

Key requirements:
- Improve code structure and organization
- Apply SOLID principles where applicable
- Remove code smells and anti-patterns
- Improve readability and maintainability
- Keep the same functionality while making it cleaner
- Follow language-specific best practices
- Add comments only when absolutely necessary
- Maintain consistent style with the existing codebase
