Just lump these into one function, like fixFlatUi(), I don't think you'll use them separately.