simplifying AlternativeFormatInputPart with better use of enum