Move var assignment out of property assignment