Heterogeneous Intermediaries in a Production Economy