Remove redundant array declarations