- You see inline code that is doing the same thing like in existing function.
- The code is more readable
- It's more easy to test the existing function.
- Replace inline code with a call to the existing function.
- Replace the inline code with a call to the existing function.
- Test
Before
