Remove duplication around removing cache entries
Remove duplication around removing cache entries

[#77329972]

Signed-off-by: Simon Leung <23f08a50fbaf82c4ecfae6738d41887b087c2e71@us.ibm.com>

cloudfoundry-incubator/cacheddownloader