Remove references to private methods.