Merge queryCourses and getCourses into courses