Having shared code in all branches of an if-statement leads to redundancy, making the code harder to maintain and increasing the risk of errors. It
also reduces readability by cluttering the distinct logic of each branch. Extracting shared code into a single location improves maintainability.