Any surplus remaining in the special fund after the payment of any debts shall be, at the discretion of the board of supervisors, transferred to the school districts, community college districts, or districts included in the former city or used for the improvement of streets within the territory of the former city.