Convert g/p relation extractor to new order