Transform RouterboardAPI into context manager.