Cleanup & format `StatsCollector.cs`