Refactoring view product decorator to remove duplicate code.