refactoring procCfg API to make it easier to mock
refactoring procCfg API to make it easier to mock

Reviewed By: jeremydubreil

Differential Revision: D2984618

fb-gh-sync-id: b332ddb
shipit-source-id: b332ddb

xennygrimmato/infer,ryoon/infer,xennygrimmato/infer,jvillard/infer,facebook/infer,blzq/infer,kageiit/infer,ryoon/infer,xennygrimmato/infer,facebook/infer,ropas/infer,xennygrimmato/infer,jvillard/infer,jvillard/infer,jsachs/infer,blzq/infer,kageiit/infer,xennygrimmato/infer,blzq/infer,kageiit/infer,xennygrimmato/infer,jvillard/infer,blzq/infer,ryoon/infer,jsachs/infer,kageiit/infer,facebook/infer,kageiit/infer,jsachs/infer,ropas/infer,xennygrimmato/infer,facebook/infer,kageiit/infer,facebook/infer,ryoon/infer,kageiit/infer,ropas/infer,ryoon/infer,jvillard/infer,facebook/infer,ryoon/infer,blzq/infer,jsachs/infer,jsachs/infer,jsachs/infer,ropas/infer,facebook/infer,jvillard/infer,blzq/infer,ropas/infer,ropas/infer,jvillard/infer