moves segment service to utility class