Competition and niche construction in a model of cancer metastasis