Simplify creation of enums.