Reduce the indentation of a for loop