builtin/remote.c: reorder function definitions