Deduplicate the definition of the public API