When I scoop poop under perches I use a 5 gal bucket. That bucket needs to be emptied immediately out to compost far from coop. If you leave a poop bucket in the coop, it will draw flies. If I do see flies, there aren't many, they seek out wetness, fresh poop, etc. A fly swatter & a sticky tape help.