This code doesn't use the parser at all, and moving it out reduces the conceptual complexity of that code.