Migrate external commands to internal

Need to redo this move against master, since the original `brew-pull` was changed.