Extract out Property.isConstant helper function.