Remove globals.py, move code into filters implementation.