Clean up entity parenting related functions to work with EntityPtr's consistently.