Refactor newing up of logic, view and event manager inside application.