Refactoring strings into enums.