[core/controllers] Clean class_groups