Optimize `regenerate.prototype.removeRange`

Closes #13.