To the extent that any fund contains money applicable to a sinking fund provided for in a refunding plan or modification of it, the treasurer shall withdraw the sinking fund money from the fund to the amount and at the times required by the terms of the refunding plan or modification of it and apply the money pursuant to those terms.