Low: refactor shared storage code into separate file