Refactored and renamed various SetDistToRoot methods.