On petition by a trustee or beneficiary, the court, for good cause shown, may divide a trust into two or more separate trusts, if the court determines that dividing the trust will not defeat or substantially impair the accomplishment of the trust purposes or the interests of the beneficiaries.