Migrate domain handling to datatables.