How do I extract the second audio channel from the first audio stream from an MP4 file

Think I found a solution:

ffmpeg -i file.mp4 -filter_complex "[0:a:0]pan=mono|c0=c1[a1]" -map "[a1]" outfile.wav

This works no matter where the audio stream is positioned.