Having livestock means having manure. Lots of it. One way to manage manure is to compost it. Composting can reduce the bulk of manure by about 50% and kill weed seeds and pathogens. The four ingredients for compost are materials containing carbon and nitrogen and air and water. There should be more carbon in the compost pile than nitrogen.