Ex-Queensland captain Stuart Law has been axed as Middlesex coach with a year left on his contract.