It could be done on the parent (passing the child to unwrap), I guess. Or just simply as a helper function?