I don't think they got rid of Gary per se, he was making a lot of money. They had to cut costs and personnel, that's obvious.
Ch.10 needs to wake up and do something different. Bring Erin Logan back. Change the set.
As far as their production problems go it's been a problem since they were an NBC O&O and it hasn't improved. A one-time station insider told me it was a fiasco there: and this is the market leader?