Modeling Modifications in Rules of Origin: A Partial Equilibrium Approach