Move locally declared methods out.