4-10-414. Cy pres.
(a) Except as otherwise provided in the terms of the trust, if a particular charitable purpose becomes unlawful, impracticable, impossible to achieve or wasteful:
(i) The trust does not fail, in whole or in part;
(ii) The trust property does not revert to the settlor or the settlor's successors in interest; and
(iii) The court may apply 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.