How to configure On Demand Environment for hybrid joined device migration

Hi,

we want to migrate Windows hybrid joined devices as hybrid joined fevices. The local AD of the hybrid joined devices remains the same, only the tenant changes. The migration has to be done via ODM AD. In this case, which ODM environment configuration is correct? Do both environments have to be set up as "Local"?

Thanks und best regards