refactor out utils from ride details