Refactor constant declarations.