Fix updating featured courses
Refactor more logic into courses module