Refactor array.