In ViewController.m factor code from viewDidLoad into new method configureActivityIndicator.