Ensure the restore hook applied to new namespace based on the mapping