How do we know we should move code inside a function?
When there's lots of duplicated code doing the same thing.