I would not recommend raising chickens in an enclosure, they tend to get pretty disgusting in that they will indeed eat their own poop and they contract mites which make it difficult to enter the coop to clean it or fetch the eggs. The mites get into your hair and clothes. It's awful.

I became so disgusted with chickens that I wouldn't touch eggs or even chicken for years after raising them. I hated them and would have killed the buggers except, I'm not much of a killer.

Free range would have been a better choice if I had the property to allocate. I gave the chickens away and burned the coop. Then I raised a pig. He was much cleaner and provided lots of good meat. I had someone else kill him and butcher the carcass.