Removed RefCounter that is redundant with shared_ptr.