Cal. Civ. Proc. Code § 639
(a) When the parties do not consent, the court may, upon the written motion of any party, or of its own motion, appoint a referee in the following cases pursuant to the provisions of subdivision (b) of Section 640:
(b) In a discovery matter, a motion to disqualify an appointed referee pursuant to Section 170.6 shall be made to the court by a party either:
(d) All appointments of referees pursuant to this section shall be by written order and shall include the following:
(6)