remove deprecated `replace` flag from directives