Refactored types and rest helper functions; replaced Seasons enum with Seasons type and IsString instances.