Remove dead references.