Refactor duplicated pieces of state in TPCC workload generator and TPCC specific constants.