Convert function to calculate strip centroid to a free function, Refactor HitRecoModule