Moving routers and controllers to subapps