Detect onehot-encoded columns in raw data, before anonymization, compress into a single column, and after anonymization recode them as onehot.