Replace a use of "domain" on list by "index".