In theory that's a manager's responsibility, but managers get (effectively) punished for firing people so that never happens in practice.