Refactorization: Use SymbolDatabase to find functions in CheckUnusedFunctions