So I leave this function here and open an issue for refactoring TraceExtensions?