Refactor addProductToContainer()