These are abbreviated notes taken from Martin Fowler's Refactoring.
(This is an atomic refactoring.)
(This is an atomic refactoring.)
- Copy the function and rename as query
- Remove side effects from query
- Replace each call using return value with call to query plus call to modifier