The slat painter code has grown organically and needs refactoring for maintainability:
- Separate rendering logic from state management
- Extract reusable drawing primitives
- Make it easier to add new slat visualization modes
- Improve tests
This is technical debt that will make future feature development easier.