Moving views to class in module views.