Move search to a library and use Dagger to handle dependencies