Utah Code Ann. § 75B-2-413
(1) Except as otherwise provided in Subsection (2), if a particular charitable purpose becomes unlawful, impracticable, impossible to achieve, or wasteful:
(2) A provision in the terms of a charitable trust that would result in distribution of the trust property to a noncharitable beneficiary prevails over the power of the court under Subsection (1) to apply cy pres to modify or terminate the trust only if, when the provision takes effect:
Renumbered and Amended by Chapter 310, 2025 General Session