The competent authority may , based on a risk assessment , grant derogations from the measures provided in Sections 3 and 4 in cases of confirmation of HPAI in a hatchery .