Replace duplicate continuity equations