Managed grazing along with other regenerative techniques can sequester carbon in the soil. Factory farms have the problem of concentrated dung disposal which usually leads to letting it sit in methane producing conditions and also feed for intensive operations usually comes from non-regenerative crop farming which uses more fossil-fuel fertilizer and depletes the soil.
A concentrated problem is one that could have a concentrated solution. Sewage farms use microbes to generate the methane which goes back into the gas grid e.g. https://www.stwater.co.uk/news/news-releases/severntrentinve...