use ? to simplify TransitiveRelation.maybe_map
#53271
Merged
TransitiveRelation.maybe_map
#53271