Move merging exams with same datetime/location logic into a function in ExamCollection