Removed duplicate code

Duplicate code was found in course_helpers.py; probably my fault from a botched rebase.  Sorry!  This PR fixes it @wedaly