Moves creation of non_trading_days into a function.

So that we're not leaving rules used for configuration hanging in
module space.