Use sealed traits for enums.