Do you mean the popen part? Would it be enough to move it to puppet.inc or do you suggest another approach?