Replace deprecated source rendering switch.