(1) If a particular charitable purpose becomes unlawful, impracticable, impossible to achieve, or wasteful, the court may apply the doctrine of cy pres to modify or terminate the trust by directing that the trust property be applied or distributed, in whole or in part, in a manner consistent with the settlor’s charitable purposes.
(2) A proceeding to modify or terminate a trust under this section may be commenced by a settlor, a trustee, or any qualified beneficiary.