visitor: Merge main and expreplace visitors.