Define logger only once in upgrades.

The steps are only called with a logger argument when you call them from your own code,
for example an import step that passes the portal and the logger to these functions.
But that does not happen in our code.