Change animation-state type to be immutable.