Replace deprecated setup_required callback.