MDL-67883 core: Make core ready for MoodleNet.