Remove unnecessary array allocation.