Remove unused replacement variables.