Would ``kwargs.keys().pop()`` work here?