Removed the duplicate code from the MetadataTable class