MDL-39957 course: replaced the course_category_deleted legacy event