Remove gapdt.
Move support functions from gapdt to util.py