refactor controller into UnitType and RouteType