refactoring code to export product prices to a customer