MDL-40649 libraries: deprecated get_recent_enrolments()