Move more IE<9 specific code to legacy_browser