Refactoring: move StorageWorker to a separate file.