Moved prettifyAst method from Prettifier to SharedHelpers.