chg: pruning in conversion to factory