The superintendent of public instruction shall be responsible for the provision of legal services to all educational service districts: PROVIDED, That any educational service district board may contract with any county for the legal services of its prosecuting attorney.