Replace magic numbers in Views to static values.