Remove outdated temporary workarounds.
Update the number of replies in thread stubs after an index refresh.