Simplification of enum_for method of When::Parts::Resource