Refactor viewDidLoad for better readability.