modified version of ecommerce platform Spree as state_machine gem caches class, making certain overrides tricky