Rule #4 Extract HandlerStack class