You could maybe add a tag for each of the previous categories for those topics (one tag per category) and add a tag with the original category to each topic, then use that tag to figure out where topics go later (and remove the original category tag when moving each topic)