Remove unused directives