Introduce and utilize module-level constants

Constants at a module-level are supported, and tests are modified to access
the severity definitions at that level.