refactor New Relic integration