Removed duplicate code
Merge pull request #1589 from edx/flowerhack/fix/remove-duplicate-course-helper-code

Removed duplicate code