Split MainController into several sub-controllers.