refactor newrelic bits