Replace use of protected with private