Fungal adaptation to plant defences through convergent assembly of metabolic modules