Add refcount impl helper.