Removed some redundant code relevant to RefCounter.