small refactoring - share the common code

between the standard and Autoyast client