Migration of instruments automation test to Appium

Hi everyone… As instruments has been removed by Apple from XCode 8. How can I reuse the automation code written in javascripts that was previously exeucted through Instruments?