Replace magic strings with constants.