D12696 and D12697 caused issues because they introduced calls to authoritativeKeyserverID() from lib/selectors/user-selectors.js, which is accessed by keyserver.
This diff moves those calls to a separate file that is only accessed by native and web. It also wraps them both in a hook for easy access.