Refactored getArtist method