Refactor ClassesFragment