Remove unnecessarily verbose looping constructs