extract common methods in YahooCommonSpec