Move states highlighting logic from Context.js to States.js.