missing enum refactor