refactor(AstParser): make AstParser private, no more injectable

follow up for #788