Reduce magic numbers