Refactor range.