Refactor SevenSegmentDisplayFormatter

- Extract methods for lines/cell rows/cells
- Use inject for result generation