fixes #4636 - refactor OperatingsystemExtensions to RedhatExtensions and refactor MediumExtensions