Tiny commit to extract a helper from DepsolveJobImpl.Run() that can then be unit tested. This should help with https://github.com/osbuild/images/issues/727