Better way to extract magic values into constants