Replace some hardcoded table names with constants.