MAINT: Code cleanup for APIRegressionValidator