Reduce code duplication by using MapObject[Set|Clear]Property.