[ptr-traits] Merge the MetadataTracking helpers into the Metadata