Splits obj into obj and root