Call enter_namespace before ctx_migrate.