Break load_segment() into two functions for increased clarity.