Remove deprecated code so view works.