Convert VarElim to use a FactorList