I raised coons for years. The only thing they can’t get into are padlocks.
I also have some crazy chickens that decided to peck at my zip ties until they broke on their divider.
Nesting boxes are too small in my opinion. The thin edge of bucket lid can do some damage to feet as well. We use the big laundry buckets with the rope handles, cut them in half, put a 1x4 in front to keep straw in and place on the ground. Easy to pick up and clean and snakes can run away not feel trapped.
I agree about the traps. Too close to coop BUT.... If you are loaded with coons, take those traps to your land boundary closest to chickens.
We actually take our extra eggs and put them over our fence in the woods to feed coons, possoms, etc. all dead snakes get hung up on a fence to feed owls and hawks. No problems since we started the bribe system lol. We have ten acres so it works but may not on smaller property.