Okay, how's this sound: I will move these two lines (89-91) into a function called `get_course_module` in module_render.py. Then in courseware views.py, import this function and call it on line 257? 

Anything else?