# Split Method

> A technique for dividing a method that branches on a flag into one method per behavior.

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

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Extract Function](https://banes-lab.com/records/lexicon/extract-function.md) and before [Inline Abstraction](https://banes-lab.com/records/lexicon/inline-abstraction.md).

## Category

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

## Refactors

- [Boolean Trap](https://banes-lab.com/records/architecture/boolean-trap.md)

## Linked from

- [Anti-patterns](https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md)
