The director shall from time to time allocate to the various banks in liquidation the expenses of the department by reason of such liquidation, other than the compensation and expense of the special deputy or assistant in charge and the fees for legal services directly incident to the bank in liquidation. The director shall certify to the various district courts of the counties in which the banks in process of liquidation are located the amount of the expenses allocated, which shall be taxed and paid as costs in the liquidation.