Refactor parser regex composition.