In a later diff, I want to use this utility from CallKeyserverEndpointProvider. This would introduce a require cycle currently, since keyserver-call.js depends on CallKeyserverEndpointProvider. To avoid the require cycle, I'm extracting it into a separate file. This is probably a good idea for code hygiene anyways.
Depends on D10685