Remove warning due to a changed signature of private method