remote-testgit: factor out RemoteHelper class