One last request:  from grepping, it looks like this 'view_mode' thing is limited only to this file.  We also never use the "view_mode" as a query parameter in the system -- in fact that introduces a weird state where `course_info_pages` depends on the 'view_mode' query_parameter but everything else depends on the course mode set by the toggler.

So, long story short, can you do a code cleanup and nuke this `view_mode` thing entirely?