MDL-68177 course: split course_info_box into different methods