Reorg the code to make a GP routing for dumping option settings