Moving extractors code outside rascal.