refactor: utils for creating stores