Remove nodes with no opaque elements.