Coordination of cohabiting phage elements supports bacteria–phage cooperation