Simplify ref slection processing