In `is_used`, we try and determine whether a tool is used based in whether it is declared as a dependency. We can functionalize this logic, which will be useful for resolving #802. It can be called `is_declared_as_dep`.