Replace magic numbers with enumeration/enumerated type