Four councils set up shared legal panels