Flatten stats dict.