Ryan - Small refactoring of courses controller.