Remove duplicated code by putting identifiers in AST identifiers