refact CourseServiceImpl