This is a follow-up of #32609 where we don't seem to generate the necessary FastClass when the factory bean method is declared in a parent interface.