Replace hardcoded values by new constants.