Removing superfluous array iteration arguments