BRIDG-668 Added helper function for templating