Extract ii related API to separated header file