simplifying AlternativeFormatInputPart with better use of enum

just code cosmetics, but may worth it