Use unified function to check for TF backend

Related-Prod: PRODX-37464
Change-Id: Icad71d674f1c3460729a6945393858986d5799da
2 files changed