intermediate refactoring step that moves the building of average profile into the RankBaselineProfilesCommand