consolidating new relic config resource and refactoring