Remove unused code and regenerate.