Cal. Bus. & Prof. Code § 22949.70
(e) A court shall not decline to enforce the severability requirements of this section on the ground that severance would rewrite the statute or involve the court in legislative or lawmaking activity. A court that declines to enforce or enjoins a state official from enforcing a statutory provision of this chapter does not rewrite a statute, as the statute continues to contain the same words as before the court’s decision. Each of the following is true about a judicial injunction or declaration of unconstitutionality of a provision of this chapter: