RefineSelection implementation.