We don't need this flag. It can be inferred by checking if replaceOpacity is null or not.