Any better way to do this for all the view controllers? Something like a base view controller subclass? Not a huge fan of that, but I'd rather not have to repeat this in each view controller.