#SB-181: When an artifact has been deleted from a repository, remove it from the index

Reversed the unnecessary changes which could have been replaced with the use of the ArtifactUtils.