Refactor to use symfony/process component