Replace team update class view with function based one
Add infrastructure to allow for context switching mode