[Code cleanup] [1.8] Don't use deprecated "reparent" function