private function applyNestedDefinitions($definitions, $record, $world)
    {
        foreach ($definitions as $definition) {
            $result = $definition->run($record, $world);
            $record = $this->applyTraits($record, $world);
            $record = array_merge($record, $result);
        }
        return $record;
    }