Removing unnecessary view code.