Add some refactorings to StudentClassController