What I don't get is that the state tracks party affiliation and publishes it. This information should not be public or even better not tracked.
On the other hand, IIRC my history, before maybe the 1970s the U.S. parties did use more private processes, selecting candidates in the 'smoke-filled room' (the image is of fat old men smoking cigars and making deals). Some say the quality of candidate was better then.
Some state like mine put everyone on the same ballot for the partisan primaries, and the instructions tell you to only vote in the column for your party, and if you vote in multiple parties your ballot is tossed out. Hence, we don't track which party you're "registered" as, because we don't need it - with the tradeoff of slightly more complex ballots .