MDL-39778 badges: archive badges in remove_course_contents()