Refactor network retrieval API calls.