Split main controller into several services