Refactor rest api utility into separate browser views.