Remove redundant array creations.