Remove useless references.