Moved table reference metadata to TableMetadata.