Simplify code in comparer by not building unnecessary script object.