Move Handler class to new common.py file