WpVersion code factoring