Refactoring. Controller for each course route.