Remove unneeded refs