Convert magic numbers to proper constants