Extracted an interface for InputStateHistory.
Swapped the methods.
Refactoring.