Get rid of make_categories_list function for Moodle 2.5 compliance