Change prefabs to use functions instead of json