Support optional view bag injection.