Refactor: convert view methods to functions for easier testing
Refactor: convert view methods to functions for easier testing

Just removing the `self` argument from all methods is enough to convert them to simple functions.

angelapper/edx-platform,eduNEXT/edunext-platform,angelapper/edx-platform,stvstnfrd/edx-platform,eduNEXT/edunext-platform,stvstnfrd/edx-platform,EDUlib/edx-platform,edx/edx-platform,eduNEXT/edx-platform,arbrandes/edx-platform,stvstnfrd/edx-platform,eduNEXT/edx-platform,eduNEXT/edx-platform,arbrandes/edx-platform,eduNEXT/edunext-platform,EDUlib/edx-platform,arbrandes/edx-platform,edx/edx-platform,angelapper/edx-platform,eduNEXT/edunext-platform,EDUlib/edx-platform,angelapper/edx-platform,arbrandes/edx-platform,edx/edx-platform,EDUlib/edx-platform,eduNEXT/edx-platform,edx/edx-platform,stvstnfrd/edx-platform