Remove dead references