Improvements to the dead code lint