Created join table enrollments for many-to-many, refactored for DRYness