The method needs to be there so that the output directory can be stubbed during the test run. I don't love the idea of creating a method simply for testing, but it's easier than digging into Thor to create a stub.

It also sets up a pattern that can be used across generators, and some of those generators could have some logic in that method.