Refactored processing the classtime query in CourseResourceImpl into its own method.