The allowUnusedFunction option should allow top-level unused functions.
Any unused functions allocated in a function, aka closures need to be checked.
Aka if are checking a top level function, then any inner functions need to be checked.
If we are skipping a top level function, then we can skip its inner functions.