The recognizance shall be returnable to and all deposits shall be held by the court before whom the defendant is to appear or does appear, and upon the transfer of the case to any other court the recognizance shall be returnable to and transmitted together with any deposits to such other court.