Move global function into RedisStorage scope

The function is unused elsewhere in the codebase. This commit is to cleanup a function that is ostensibly a private function call and remove it from the global scope where it is unused.
Merge pull request #21 from philipcristiano/function-scope

Move global function into RedisStorage scope