Create data handling module, move relevant functions and data there.