Avoid false dep warnings.
Optimize snippet searching for unused deps.