Add removeInstance() to singleton classes.