[datautil] Extract loader functionality into a Loader utility