diff --git a/lib/librarian/resolver/implementation.rb b/lib/librarian/resolver/implementation.rb
index <HASH>..<HASH> 100644
--- a/lib/librarian/resolver/implementation.rb
+++ b/lib/librarian/resolver/implementation.rb
@@ -65,8 +65,7 @@ module Librarian
         dependencies << dependency
         scope_resolving_dependency dependency do
           related_dependencies = dependencies.select{|d| d.name == dependency.name}
-          debug { "Checking manifests" }
-          scope do
+          scope_checking_manifests do
             resolution = nil
             dependency.manifests.each do |manifest|
               break if resolution
@@ -110,6 +109,13 @@ module Librarian
         resolution
       end
 
+      def scope_checking_manifests
+        debug { "Checking manifests" }
+        scope do
+          yield
+        end
+      end
+
       def scope
         @level += 1
         yield
Move some scope work into a helper method in the resolver impl.