refactor flickr service to a provider