Clean up code of CheckCatDeadSystem.