We can try to refactor State diagram (UML) by introducing composite state.

Composite State (UML State Machine)

If a group of states all have identical outgoing transitions to states not in the group, then create a new superstate of of these. Replace common outgoing transitions by transitions from .

Link to original