Flatten data, remove cruft