Extract categories to separate file