Lawmakers in California’s Senate and House of Assembly this week passed legislation that would codify the regulation of the…