No problem. I assumed that you copied this pattern for obtaining the `course_module` from somewhere else, namely https://github.com/edx/edx-platform/blob/master/lms/djangoapps/courseware/views.py#L257

If we're using this in multiple places, it makes more sense to refactor out the logic than to duplicate it.