Remove "with demoted errors" from convert to function form