Moves error format strings into const values