Cal. Civ. Proc. Code § 418.10
(a) A defendant, on or before the last day of his or her time to plead or within any further time that the court may for good cause allow, may serve and file a notice of motion for one or more of the following purposes:
(e) A defendant or cross-defendant may make a motion under this section and simultaneously answer, demur, or move to strike the complaint or cross-complaint.