Use callbacks for lazy init of DataTypeFactory.

Change-Id: I38c8daa77ed4e8280000edab8a367e2ef7fce479
Merge "Use callbacks for lazy init of DataTypeFactory."