Note: This is only a technical refactoring, we will still support custom registries, it doesn't affect anything from a feature set viewpoint.
The yarn registry being a mere mirror of the npm registry, this part of the code doesn't make sense. It also doesn't work since there's places where we make assumptions that we don't do in other places. The end result is something slower and more complex than needed.