Simplify state implementation (comparison of states).