Reverted refactoring 828417c for now. It caused a major slowdown in the unused functions checking.