def Routers(typ, share, handler=RoutersHandler):
_sharing_id, _mode = tuple(share.split("<STR_LIT::>"))<EOL>_router_cls = ROUTERS.get(typ)<EOL>class _Handler(handler):<EOL><INDENT>mode=_mode<EOL>sharing_id=_sharing_id<EOL>router_cls=_router_cls<EOL><DEDENT>return _Handler<EOL>
Pass the result of this function to the handler argument
in your attribute declaration