Remove non-optimized nodes