Moved parent_id fetching to a new namespace