[NUI][ATSPI] remove duplicated calculation for states