Extract method to create new Post objects