Cleanup topology file structure