I'm not sure I'd put it that way, it sounds like a rather Newtonian description of gravity. I get the sense the OP is framed in the language of general relativity with a cosmological constant, in which case it's all gravity-- expansion is gravity, acceleration is gravity, bound orbits in galaxies is gravity. So the way I would put it is, gravity has many aspects, and the local density of matter controls which aspect is most important. On the galaxy scale and smaller, what matters is the gravity of the local masses, and you get bound orbits and no expansion of space (indeed, it is useful to imagine that space is contracting in such environments, though of course this really refers to a particular choice of spatial coordinates). On the scale of the universe as a whole, you have the cosmological principle, and that combines the gravity from the average density over the whole universe (most important for about the first half of the universe expansion) and the gravity from vacuum itself (say in a cosmological constant way, most important for the about the latter half of the expansion). Another crucial factor is the initial condition in time-- we have an expanding universe whenever we "start the clock" of our gravity analysis, and that is yet another aspect of the process we must take into account. So in effect we have an initial condition that is responsible for space being added (which was most important early on, say after inflation), we have dark energy that is responsible for space being added (which is more important recently), we have global mass density that is responsible for space being removed (important early), and we have local galaxies that are responsible for space being removed (important locally only).