JsonFactorizingDiff: modify more code

I still don't understand most of it, though.