Final deprecation of core_grades_external::get_grades along with unit tests and related private methods.