Moved df_history utility routines from typedefs to new file.