convert categories to routing