Notwithstanding any provision to the contrary in the governing instrument or under any other law of this state and except as otherwise provided by judgment of a court or by a provision of the governing instrument, which in either case is entered or made after October 1, 1971, and expressly limits the applicability of this article, the trustee of a trust, whenever created, which is or is treated as a private foundation as defined in Section 509 of the Internal Revenue Code of 1954, a charitable trust as defined in Section 4947(a)(1) of the Internal Revenue Code of 1954, or a split-interest trust as defined in Section 4947(a)(2) of the Internal Revenue Code of 1954, during the period it is or is treated as a private foundation, charitable trust or split-interest trust as so defined:
Ala. Code § 19-3-300 (1975)