Defer import from reductions.py, in order to prevent circular dependencies.
Also add a missing import.