Remove duplicated code in update-dependency-in-buildpack
Remove duplicated code in update-dependency-in-buildpack

cloudfoundry/buildpacks-ci,cloudfoundry/buildpacks-ci,cloudfoundry/buildpacks-ci,cloudfoundry/buildpacks-ci,orange-cloudfoundry/buildpacks-ci,cloudfoundry/buildpacks-ci,orange-cloudfoundry/buildpacks-ci,orange-cloudfoundry/buildpacks-ci