Simplify code related to clear hidden posts/threads button in settings.