Refactor out protocol preperation to ApiQueryExtLinksUsage::prepareProtocols()