Merge "Extracted some logic to utils_default.cpp in order to make platform specific overriding easier"