The name does not depend on state, suggest to assign the name here instead of in the switch cases.