Consolidate of_get_parent