Moving array expansion to trait