Refactor operator <<'s