Move REUIKitIsFlatMode into its own file, fix method redefenition