Remove a bunch of unused code from the View.