Extract server lookup to a method
Do not delete if multiple search results are found
Change 'instance_id' name to reflect new meaning

This value can now be an instance_id or an instance name, so here we
give it a more general name.