The other plausible option in my mind is simply that a particular food
source, one promoting specialization, was so comparatively abundant
that it was just waiting for a predator to tap into specifically. In
apparently theropod-rich, herbivore-poor environments like those of
*Spinosaurus*, and that would appear to be fish (and other aquatic
targets) - even if they were only seasonally available. A sufficiently
rich harvest of fish each year, providing vital fats and protein to
survive the next hard season, could perhaps prompt a degree of
specialization. Of course I'm not sure that would really be true for
all spinosaurs in various other habitats, but maybe that set of
conditions was the locus of their evolution.