Refactor getAdvertise into a func
Refactor getAdvertise into a func

Ashald/nomad,diptanu/nomad,frundh/nomad,frundh/nomad,hooklift/nomad,kmalec/nomad,diptanu/nomad,achanda/nomad,diptanu/nomad,achanda/nomad,frundh/nomad,nak3/nomad,novilabs/nomad,kmalec/nomad,barnardb/nomad,hooklift/nomad,hashicorp/nomad,dvusboy/nomad,hooklift/nomad,burdandrei/nomad,barnardb/nomad,hooklift/nomad,barnardb/nomad,nak3/nomad,dvusboy/nomad,burdandrei/nomad,Ashald/nomad,hooklift/nomad,frundh/nomad,achanda/nomad,hashicorp/nomad,frundh/nomad,kmalec/nomad,frundh/nomad,achanda/nomad,frundh/nomad,barnardb/nomad,Ashald/nomad,novilabs/nomad,burdandrei/nomad,nak3/nomad,achanda/nomad,kmalec/nomad,dvusboy/nomad,diptanu/nomad,dvusboy/nomad,burdandrei/nomad,Ashald/nomad,hooklift/nomad,achanda/nomad,burdandrei/nomad,novilabs/nomad,dvusboy/nomad,hashicorp/nomad,dvusboy/nomad,burdandrei/nomad,kmalec/nomad,nak3/nomad,hashicorp/nomad,diptanu/nomad,kmalec/nomad,diptanu/nomad,nak3/nomad,Ashald/nomad,diptanu/nomad,novilabs/nomad,achanda/nomad,barnardb/nomad,dvusboy/nomad,hashicorp/nomad,kmalec/nomad,hooklift/nomad,Ashald/nomad,nak3/nomad,novilabs/nomad,novilabs/nomad,novilabs/nomad,Ashald/nomad,hashicorp/nomad,barnardb/nomad,barnardb/nomad,burdandrei/nomad,nak3/nomad