Prior to the delegation of a task , ESMA shall consult the relevant competent authority .