Factor out storage protocol in 'konserve' project.