Traces of Mediation in Rewriting and Translation