Refactoring. You have to move this logic from A to B, thus adding some complexity to B, reducing the overall complexity because this logic really belongs to B.
Note that during refactoring you will have twice the logic, which is the worst state, so you can't stop in the middle and say you'll finish later.
Note that during refactoring you will have twice the logic, which is the worst state, so you can't stop in the middle and say you'll finish later.