Refactor the whole app in order to improve the structure of the application.