red-brick: Refactor common code on settings tab into function
red-brick: Make network_refresh_tasks_remaining local