Minor refactoring of uglifyAst.pullCommonStructuresIntoVars.
Pulled more code into separate methods.