The costs of the preparation and conduct of a by-election shall be paid from the local government budget if it is held because the representative body or the general assembly declared its dissolution or was dissolved.