Refactoring markup for material items on user pages