Staticfy some methods to make them easier to factor out.