(a) If, upon petition, the court finds that the settlor and all beneficiaries consent to the modification or termination of an irrevocable trust, the court shall enter an order approving the modification or termination even if the modification or termination is inconsistent with a material purpose of the trust. A settlor's power to consent to a trust's modification or termination may be exercised by an agent under a power of attorney only to the extent expressly authorized by the power of attorney or the terms of the trust; by the settlor's conservator with the approval of the court supervising the conservatorship if an agent is not so authorized; or by the settlor's guardian with the approval of the court supervising the guardianship if an agent is not so authorized and a conservator has not been appointed.
(b) A noncharitable irrevocable trust may be terminated upon consent of all of the beneficiaries if the court concludes that continuance of the trust is not necessary to achieve any material purpose of the trust. A noncharitable irrevocable trust may be modified upon consent of all of the beneficiaries if the court concludes that modification is not inconsistent with a material purpose of the trust.
(c) A spendthrift provision in the terms of the trust is not presumed to constitute a material purpose of the trust. This subsection applies only to irrevocable trusts created on or after January 1, 2007, and to revocable trusts which become irrevocable on or after January 1, 2007.
(d) Upon termination of a trust under subsection (a) or (b), the trustee shall distribute the trust property as agreed by the beneficiaries.
(e) If not all of the beneficiaries consent to a proposed modification or termination of the trust under subsection (a) or (b), then the modification or termination may be approved by the court if the court is satisfied that:
(1) if all of the beneficiaries had consented, the trust could have been modified or terminated under this section; and
(2) the interests of a beneficiary who does not consent will be adequately protected.