If I understand it correctly this is basically the same request as this one:
https://meta.discourse.org/t/remove-topics-listed-under-sub-categories-that-are-also-in-the-sub-categrories/80901?u=paulkreuzer