Add constants of history value types.
Remove needless code.