Refactor views/mixin.