refactored group_tree_node management kinds logic into a module
added Course#by_category_grade_kclass