# Centralize the Rule

> A technique for gathering every copy of one rule into a single definition that the copies are replaced by.

Record: `lexicon:centralize-the-rule`
Kind: technique
Layer: [Structural Core](https://banes-lab.com/records/layer/structural-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-centralize-the-rule

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Split by Domain](https://banes-lab.com/records/lexicon/split-by-domain.md) and before [Explicit Dependency](https://banes-lab.com/records/lexicon/explicit-dependency.md).

## Category

- [Core Modular Design](https://banes-lab.com/records/lexicon-category/core-modular-design.md)

## Refactors

- [Shotgun Surgery](https://banes-lab.com/records/architecture/shotgun-surgery.md)
- [Stringly Typed Programming](https://banes-lab.com/records/architecture/stringly-typed-programming.md)
- [Magic Value](https://banes-lab.com/records/architecture/magic-value.md)
- [Do Not Repeat Yourself](https://banes-lab.com/records/architecture/duplicate-code.md)
- [Convention over Configuration](https://banes-lab.com/records/architecture/convention-over-configuration.md)
- [Single Source of Truth](https://banes-lab.com/records/architecture/single-source-of-truth.md)

## Linked from

- [Anti-patterns](https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md)
- [Core Modular Design](https://banes-lab.com/ontology/principles/architecture-category-core-modular-design.md)
- [Metadata / Self-Description / Declarative Systems](https://banes-lab.com/ontology/principles/architecture-category-metadata-self-description-declarative-systems.md)
- [Schema / Canonical Data / Semantics](https://banes-lab.com/ontology/principles/architecture-category-schema-canonical-data-semantics.md)
