Move ApiRouteHelpers into separate file