We did that recently, and the heavy lifting was do...
# puppet
l
We did that recently, and the heavy lifting was done using the auto-fix functionality of puppet-lint. Was reasonably easy to restrict it to just the top scope/legacy facts.