Without approval of court and except as otherwise provided by the terms of the trust, a trustee may combine two or more trusts into a single trust or divide a trust into two or more separate trusts, if the combination or division does not impair the rights of any of the beneficiaries or substantially affect the accomplishment of the trust purposes. On petition by a trustee or beneficiary, the court may affirm or prevent a proposed combination or division; and, if the terms of the trust instruments creating the trusts are inconsistent, the court shall resolve such inconsistencies in its order by establishing the terms of the trust that will survive the combination or division.
SDCL 55-3-29