Remove unnecessary friend clause.