Before deciding to impose or renew any measure referred to in paragraph 1 , ESMA shall consult the ESRB and , where appropriate , other relevant authorities .