Extract method for duplicate code in Collection