Remove unnecessary boilerplate code from ViewController class