Currently the instance discovery simply extracts the host. The class uses authority as directly passed, as ADAuthenticationContext is the only user of the class. That said, if developers intend to use the ADInstanceDiscovery class directly, they would need a way to canonicalize the authority. As such, I agree with you - I will move it there as a public static method.