Remove sudo factory method
Set up commands with popen3