1 Factoring a function out increases the number of preconditions and state dependencies that must be understood when calling the function, which can make the program harder to maintain.
“what needs to be true in the rest of the program while calling this function program could be in all kinds of different weird states and you know what state does it have to be in what are the preconditions”