This should just be: `\OCP\Contacts::registerAddressBook($addressBook->getSearchProvider());`