So I've done the very beginnings of the refactoring that UseMod? desperately needs. For now, I have main refactored the OpenFoo?() and CreateFoo?() methods -- in most cases, there is now a FetchFoo?() method under the hood, which uses local variables instead of globals. This allows me to use those Fetch methods when I need a page for something else.
In the long run, this codebase desperately wants to be heavily refactored, to be a bit more OO and a lot less dependent on the globals. That's a very large project, and I'm not undertaking it now, but I might do it someday if I get frustrated.