Refactor daily course enrollment