Alternately, they'll make no accommodations. The developer's productivity keeps falling. Eventually he's put on a PIP (performance improvement plan) and finally once it runs its course, they'll have a legal way to just kick him out.
If you have an hostile manager or HR department then yes it's time to move on.
For anyone reading this: if you ever find yourself placed in a "PIP", leave. That's like being inside a black hole's event horizon, you'll never come back.
That said, I have seen people come back from a PIP and kill it, to the point where on their next review they get all of the equity they lost in the prior cycle plus the comp from the new cycle. Obviously this is rare, but I have seen it.