Or. Rev. Stat. § 130.210
(1) Except as otherwise provided in subsection (2) of this section, if a particular charitable purpose of a trust becomes unlawful, impracticable, impossible to achieve or wasteful:
(2) If a provision in the terms of a charitable trust would result in distribution of the trust property to a noncharitable beneficiary, a court may not apply cy pres to modify or terminate the trust under subsection (1)(c) of this section if, when the provision takes effect:
[2005 c.348 §33; 2009 c.275 §13]