Remove unused code and references to it.