This allows to have access to `getBeanDefinition` if the original bean definition needs to be retrieved. See gh-28936