refactoring query to find species term and solrize subjects with species to species hierarchy