Abstract async task away from LinksActivity.