split type into category and subcategory