Configure the action before the file factory

So that the file factory can use the action to determine the output
directory