Fix instance config writer to use existing instance API