Flexible Use of Patch-Leaving Mechanisms in a Parasitoid Wasp