Reduce the complexity of ProductTransformer::setAssociations()