New utility file and function for generic, useful data reorganization