Move the removeLayers code to TOCLayerManager in navtableforms