Suggestions per japgolly - moved composeUndef to companion, use fold to avoid additional function creation