Replace private implemetation with interface.