Refactor BundleVersionsHash

to make it easier for external code to invoke the hash functionality.