MDL-69507 duration form field: modernise coding style