def clear_and_configure(config=None, bind_in_runtime=True):
    """Clear an existing injector and create another one with a callable config."""
    with _INJECTOR_LOCK:
        clear()
        return configure(config, bind_in_runtime=bind_in_runtime)
Clear an existing injector and create another one with a callable config.