A chicken that is not provided with adequate enrichment and mental stimulation will be more inclined towards problem behaviors. Feather pecking, bullying, egg eating and even cannibalism are almost always a result of chickens that are confined.
A great DIY Black Soldier Fly composter. The Larvae eat ANY kitchen scraps and, when mature enough, crawl out to feed the chickens. The best way to compost waste in my opinion. look at how happy those chickens are!