T-Junction Removal in BSP Trees.

Hello, T-Junctions have been a pain for me to fix because I’ve only found brute force methods which take ages with a BSP tree containing over 10k nodes. Has anyone worked with this issue before and had a solution?