public static function slice($data, $keys)
    {
        $removed = array_intersect_key($data, array_fill_keys((array) $keys, true));
        $data = array_diff_key($data, $removed);
        return [$data, $removed];
    }