Remove unused code paths.