Revert "REFACTOR: removes unused code" (PR #13623)

Reverts discourse/discourse#13412.

The store code is used by the reviewable. Will remove the test assertion in a follow-up commit.

GitHub