Glue a short piece to the top of the beacon. Or use velcro. If you forget to remove and lose it cut off another piece.
Search Amazon for "bird spikes".
Spikes don't work for some birds, I got tired of cleaning bird poop off ours.
Oh! I never thought of electrifying them! Good job.I have an electric box on the wall, near the ceiling of my front porch. For a couple of years I was constantly cleaning poop off the porch. Then I glued some bird spikes to the top of the box. Voila! No more poop on the porch.
I'd be worried that something like that might become a projectile in a wind storm, and damage either my own plane or another one nearby....Upside coffee can with styrofoam inside to protect the beacon and bird spikes on top. When you follow your checklist remove when you check the beacon...