Structural reforms and endogenous market structures