Make ref check OO.