sorting out the detached fields and sections in order to have them available on the templates