Reused states as much as possible in migrations