When any assets of the estate are encumbered by mortgage, pledge, or otherwise, the executor or administrator may pay such encumbrance or any part thereof, whether or not the holder of the encumbrance has exhibited his or her demand, if it appears to be for the best interest of the estate and if the court shall have so ordered. No such payment shall increase the share of the devisee, legatee, or heir entitled to receive such encumbered assets, unless otherwise provided in the will.
K.S.A. 59-1304