Replace magic value with defined constant.