Remove unused namespace directives.