remove directive replacements