Suppose that there is a locally integrable foliation on a manifold $M$ such that any of its leaves is not dense in $M$. Does that mean that we can factorize $M$ by this distribution and get a topological space with at least one non-trivial continuous function on it?