Hierarchical categories in groups