When the external enrolment has a null execution period then the execution year is the registration year
minor refactor to increase the readability of the code