Add some helpers to AddRefed.