Once in a while, you remodel the joists while you're at it. If you must, cut a piece out, and "head it off". Which means use the same dimension lumber to connect the cut ends of the joist to it's neighbors. Use approved joist hangers and nails. Not screws! Screws are brittle, and break easier...