The biofilms are actually a big part of the whole Science of parasitic infections with microbes. I watch specimen build them in culture. It usually involves several exogenous species, but it seem deliberate. They create "nests" from which new parts will emerge. I think they also use host proteins in this process as well.