Compositionality in Horizontal Transmission