Oauth stuff has views, and this function is only needed because of the oauth stuff.

So I guess I follow that pseudo-rule but probably got this one wrong :)

Given that it is called by __init__ of deploystream it probably should live elsewhere TBH.