This looks confusing, but really I just moved the load_remote_yaml stuff into its own function