Extract to remote.go