The ‘ol letter of the law vs spirit of the law.
The law permits the behaviour, don’t like it? Change it.
The law permits the behaviour, don’t like it? Change it.
The problem is that this was hard to enforce, so now they have changed the law to something much simpler: if any corporate officer or beneficial owner is a resident of California, then the business is subject to Californian taxation.