Replace this duplication with a loop over declarative material