Illustrator: treat it as a layer

How to ungroup a group item in Adobe Illustrator CS (all versions).

I’ve been searching for a solution to that. It’s been wrecking my brain for quite some time. Same thing this morning and I really couldn’t find a proper solution (without using System Events’ keystrokes).

Untill I read Adobe’s AppleScript Reference, again, as a last resort.
A group item is actually a layer item. So why not treat it like that:

tell application "Adobe Illustrator"
	-- treat it as a layer
	-- move all items of the group to the layer
	move every page item of group item 1 of layer 1 of document 1 to beginning of layer 1 of document 1
end tell