Remove the namespaces that are not used