Refactor the xxxStats setters and the stats response parser.