refactor: group conditions in connector status change check