perf: Make build fix for 3.13 cleaner.