From what I have read on here:
Fill eggs with mustard (inject with syringe) as they don't like the taste - also make sure you have fake eggs or golf balls in nests so when they peck them nothing happens.
I haven't tried the mustard thing so IDK if it works.