Remove unnecessary namespace declarations.