Move helper functions into LeakAnalysis.h