Refactor sequence module to accept new history data structure.
Merge pull request #2345 from guardian/fix-sequencing

Refactor sequence module to accept new history data structure.