Extract view logic into presenter.