remove deprecated directives