Refactoring to use real data in controlPanelFactory-getByDay