Replace magic constant by named value.