Revert "refactoring: remove dead enumeration items and dead code"

This reverts commit e2443f151d4d2bcd7574c19dcb3b4aedbd262a75.

The enumeration items were used in a range expression.