Use an enum instead of magic constants to improve readability.