Refactoring of view classes.