GenericOCIO: factorize choice menu building code