A role for gut microbiota in host niche differentiation