Move several SelectionDAG-independent utility functions out of the