Anyway I agree that I'd refactor and dup the caller which is only this one https://github.com/rails/rails/blob/rack_master_integration/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb#L69