Refactors Storage to not be dependent on request or response objects.