Refactor the query consturctor to require an array of posts rather than defaulting to some global posts store.