Migrate state to store