Refactoring  - extracted common parts from code that splits horizontally and vertically
Refactoring.
Moving around functions to find patterns