Turn the updateindex module into a function that runs after each module run

Once, #20350 (moved) is in place. updateindex can be plainly added as a function that runs after each module run.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information