Make remove_by_id example serialize directly to stdout stream