Put enumeration into a separate class.