Code Review PR

You should extract this into a method in the Comment model perhaps.