Remove unnecessary required namespaces.