WIP: Refactor constants (comments welcome)

what is this class doing?