Nothing in this article shall impair the rights and powers of the courts or the Attorney General of this state with respect to any trust. The provisions of Sections 19-3-300 and 19-3-301 shall not apply to any trust to the extent that a court of competent jurisdiction shall determine that such application would be contrary to the terms of the instrument governing such trust and that the same may not properly be changed to conform to such sections.
Ala. Code § 19-3-302 (1975)