Refactor enrollable course logic.