Completely rewrite directive.