Replace all PrevRelation with PrevRel, all NextRelation with NextRel