Out of Memory - too many global variables, Global CONST, & Types

Error 3762

There are too many global variables, constants, and Type declarations.  Make some of them module-level.