turned extract_* methods in History class into plain functions