This commit DRYs up the indices folder as well as fixing a few minor mishaps that were in the docs.
Relates #27205