Removes unused :ref