Avoid private api if metadata is exposed