#67583Introduce early returns in DataHandler::localize()
Description
localize() has quite a few nested levels that can be converted to early returns. The method is one of the worst examples of DataHandler code, with two lines that have 14 (!) trailing tabs (i.e. 12 indentation levels within the method).