delegated creation of storage helper and storage API to a factory. This will ease reuse of the storage helper for different purposes.
and centralize creation of these in one method only.