Substitute shared pointer constructors with .toStrongRef()