Batch up storing state groups when creating a new room.