EOD commit: midway through attempt to generalize the structure that keeps track of the T_DATA_GRID types in data_factory.