Removed silly assignment from code.
Removed unused private method.
Removed silly assignment left after previous refactoring.
Removed duplicated array keys and case expressions.
Fixed: foreach array productIds used as value
Fixed: bug with displaying values.