Refactored CommentController.