Refactored comments controller to be more dry