Transforming measurement frameworks to enable in-flight optimization