ASTNode factory method.