Refactor constants.