refactor enum casing