Just checking in with the mothership before I start digging into code. I've noticed that each time the main category is changed for an item, rather than simply changing the unique value, each main category selection gets stored as an additional secondary category. So one can change the main category 5 times and wind up with 5 secondary category associations. It seems the secondary category selection action should be restricted specifically to the Secondary Categories selector?