LDAP-263: Extracted interface to minimize class coupling in query package.