Phage--Bacteria Infection networks: from nestedness to modularity and back again