refactor(courses) - Move object generation to model