Refactoring: Performance Optimization for Products and Categories