Refactoring CheckUnusedFunctions so it uses new infrastructure for multifile analysis