If a person is fully and properly implementing a nutrient management plan or an odor management plan approved by the local conservation district or the commission and maintained under this chapter for an agricultural operation, the implementation shall be given appropriate consideration as a mitigating factor in any civil action for penalties or damages alleged to have been caused by the management or utilization of nutrients or the abatement of odor impacts pursuant to the implementation.
3 Pa.C.S. § 515