“cmd.extract” is simply a shorthand way calling the “create” command with the extract argument activated, so that atoms in the new object are removed from the source object.
def extract(*arg,**kw):
extract | cmd.create | api