Implementation for DE-1089. Centralize the definition of context into a single method. This is in common/djangoapps/track because the context is originally set there by middleware.
common ------ This directory contains common code shared between LMS and CMS, such as Mako templates, CSS, and Coffescript.