refactoring discogs call