We should also deal with the case where the @Bean is a `MessageTransformingHandler`.