Refactor all selection nodes.