'annotate \'remote\' in primaryjoin, secondaryjoin
when \'secondary\' is present.'

def _annotate_remote_secondary(self):

    def repl(element):
        if self.secondary.c.contains_column(element):
            return element._annotate({'remote': True})
    self.primaryjoin = visitors.replacement_traverse(self.primaryjoin, {}, repl)
    self.secondaryjoin = visitors.replacement_traverse(self.secondaryjoin, {}, repl)
