As a first step in consolidating code between Z3950Search and Z3950SearchAuth, as well as preparing to move to Koha namespace. Part of omnibus 33835.