Refactored OffsetTree score-creation logic.