Refactor cms create_new_course