Revert "Move pretty printing of ast nodes to ASTNodes"

Reverts neo4j/neo4j#2941