Remove obsolete directives