Use Result as a return type for take_value instead of Either