Minor refactoring to migrate phab DB calls to a separate object