I'd maybe try to collapse this and the previous methods down; for example, you could have def setup_view that does lines 93-97, and then def setup_view_with_staffer that calls setup_view and then does line 85.