DRYed up enrollments index issue #6