Extract datapath in utils