Let ℱ be the collection of nonempty subtrees of a given tree T. Each subtree is viewed as a potential facilty. Let f be a real objective function defined on ℱ. The facility location model the paper considers is to select a subtree minimizing f. This model unifies and generalizes several facility location problems discussed in the literature. The paper proves that the most common objective functions used in facility location theory possess the submodularity property. In particular, the ellipsoid approach provides a unified framework for polynomial solvability.