Refactoring processinfo creation into it's own service for separate testing