Move findDeps to the upper level