Refactoring: add StoryQuery.
Add StoryQuery helper class.