fixes #6156 - refactor OperatingsystemExtensions to RedhatExtensions and refactor MediumExtensions