Refactor comment create logic.