Refactored and added StorageProviderFactory implementation.