Move inventory saving to configurable io class