Move %Pages into $self.
Encapsulate code into prepare_parser.