OEC-42 Courses exporter, plus more refactoring to share code