Fix logic duplication between LegacySkinParser and WPushButton.