Avoid using private type on public interface