Refactor constants

I think this is now ready to be merged.  It should be deployed after the branch of the same name in C2 is deployed, and we will have to adjust the configuration file on the deployment servers to point to the C2 .yml file.