Refactor newrelic command choice