Nuke unneeded refs