Remove duplication from AST injectors