Not duplicating code is literally best practice. Why would it deviate from that?
This is far from a universal best practice and heavily depends on what code it is and for what reason you are duplicating it potentially.
This is far from a universal best practice and heavily depends on what code it is and for what reason you are duplicating it potentially.