Why not unscrew the pipe coming up out of the floor and replace with a shorter nipple and threaded cap?