remove references to the ReactInstance