If you remove all the banned features, it can have a detachable mag in CA. Remove the detachable mag and it can have the banned features. Just can’t have both in CA. But....... the CA latest laws on this may be up in the air.
In the 59 years I lived in Calif, do not recall one gun law being pulled. May have been one, but is always seemed like an unstoppable avalanche.