[Bro-Dev] [JIRA] (BIT-1449) Wrap Broker Bifs into script-level functions