Replace constants.