Simplified some operations involving Maybe.