Managerial incentive contracts with a production externality