The flow can be simplified if the automation can handle things like Switch-case instead of Else-If.