refactor(Scope): Pull ASTParser out of Scope into it's own library

For #1086