from pythonfeatures import pythonfeatures from pythonfeatures.constants.split import FEATURE_ENABLED from src.constants import TAP_GENERATE_PAYMENTS_LAMBDA_REFACTORING def is_refactoring_enabled() -> bool: """Checks if the refactoring feature flag is enabled.""" return bool( pythonfeatures.get_single_feature_by_attributes( TAP_GENERATE_PAYMENTS_LAMBDA_REFACTORING, attributes={} ).message == FEATURE_ENABLED )