Put these gems in a testing group
Only log details if certificate published
Convert recursive get result function to a loop
Remove recursion and turn Factory into an iterator