; or (bb) brought to a farm from a nearby community and used to produce compost on that farm; and (II) the use and active management of compost on a farm, in accordance with any applicable Federal, State, or local law, to improve water retention and soil health. (ii) Determination of nearby communities The Secretary, in consultation with the Administrator of the Environmental Protection Agency, shall issue regulations for determining whether a community is nearby for purposes of clause (i)(I) which shall ensure that bringing organic waste from the community to the farm to produce compost results in a net reduction of greenhouse gas emissions. .