What's the reason for this change? Doesn't this lead to both orig_metadata and metadata being the same object afterwards?