Syntactic sugar for writing simple monadic extractors in Scala