refactor: move check for avoidPreambleMetricsMethod