Move gerrit comment logic to its own file