API-ified the RangeExtractor