Moving json dependent consumers out of tests.