Remove unused directives.