refactor appsignal instruments