To keep them from visiting the compost you could set up some electric poultry netting in an area you think appropriate.
And feed them some Moro carrot soup to restore gut balance
https://www.ency123.com/2015/09/natural-remedy-for-diarrhea-professor.html