extract method for building collections of posts