Automating the P OWHEG method in S HERPA