def _extract(self, exprs, context, n):
    extracted = super()._extract(exprs, context, n).extracted
    rule = (lambda e: any(((a in extracted) for a in e.args)))
    mapper = Uxmapper()
    for e in exprs:
        for i in search(e, rule, 'all', 'dfs'):
            if (not i.is_commutative):
                continue
            key = (lambda a: (a in extracted))
            (terms, others) = split(i.args, key)
            mapper.add(i, self._make_symbol, terms)
    return mapper
def _extract(self, exprs, context, n):
    extracted = super()._extract(exprs, context, n).extracted
    rule = (lambda e: any(((a in extracted) for a in e.args)))
    mapper = Uxmapper()
    for e in exprs:
        for i in search(e, rule, 'all', 'dfs'):
            if (not i.is_commutative):
                continue
            key = (lambda a: (a in extracted))
            (terms, others) = split(i.args, key)
            mapper.add(i, self._make_symbol, terms)
    return mapper