The King has made it very clear that he was entirely unhappy with Andrew's involvement for years, but had Andrew done the right thing and entirely disappeared from public life he might have retained a degree of protection.
He didn't and so he had everything stripped away which sent a very clear message to Government and the police that he was there for the taking.
The 'firm' protects itself ruthlessly. Andrew was too exposed in a too public scandal, they had not alternative but to cut him loose to protect themselves and the monarchy. Governor of the Bahamas was not an option...