public static function withoutNested(array $flat, $separator = '.')
    {
        $root = [];

        foreach ($flat as $key => $value) {
            if (strpos($key, $separator) === false && !is_array($value)) {
                $root[$key] = $value;
            }
        }

        return $root;
    }