simplify Maybe case matching