Investigating the role of biological modularity and stochasticity in cancer metastasis