This is a pretty good refactoring.  I think that there may be a better name for the helper function (e.g. `_load_new_segment`), but that's an incredibly minor point.  Good work!