To do so is unsafe as we have no way of identifying references to symbols provided by the object. Fixes #24513. Fixes #23993.