I think I'd rather have this logic just live in `serialize_field`, rather than having a `lambda` containing an `if` clause in the `AttrMap`