Refactored create, upvote and downvote methods in Comments controller by replacing their common code