There are several places where we say "if folders enabled", "get prefix", append job type name, etc etc. That should all be in one place. See: fd6c6ceaba1cbf0b94fa48e59694e2d4c8efb954 for an example of the straw that broke the camel's back.