Since you're passing something anyway, pass in "enable_instructor_email" and keep the "is_mongo_modulestore_type" logic internal to the view.py.