Refactor ResourceManagerService