Welfare and Institutions Code § 247.5
ARTICLE 4. The Juvenile Court
The provisions of Sections 170 and 170.6 of the Code of Civil Procedure shall apply to a referee, provided, that the presiding judge of the juvenile court shall if the motion is granted reassign the matter to another referee or to a judge of the juvenile court.