Domain Driven Design in UiPath

There is for sure some terribly messy data variables with datatables etc in some sloppy solutions. But just curious to know what part you most think needs to be abstracted into a different layer.
You think a data layer is needed in those projects or?