Revert "Revert "Refactor BundleVersionsHash to make it easier for external code to invoke the hash functionality.""

This reverts commit 07493d56ec999f9568e727ef244c3476b5bb9e54.