Harden the migration against undefined operations.
Better checks for undefined operations.