Refactored getCommentsByReview to be more general so getting comments by comments can use the same function