The California Legislature has a bad habit of writing new law in the moment and paying little or no attention to its potential consequences.