KCINFR-979: minor refactoring of KcAttachmentService such that is doesn't depend on KcAttachment to get the icon path