Abstract util.multi pattern.