The effect of dynamics on the composition of Titan's upper atmosphere