Remove references to internal classes.