convert-ast refactored as instaparser/transform function