Actually, looks like `get_parent_entry` itself is duplicated as well.