Refactorin Moodle2.7