Moved and renamed TypeFactory into JsonFactory.