WorkDurationFactory API should not accept nullable parameter