Fix variable names from CamelCase to snake_case.