The nipple comes out of the wall ??
Yep, then cut it back to the length you need with a hacksaw.
All advice is given with-out seeing the job, and hence all advice MUST be taken as advice with limited knowledge on the exact situation. NO responsibility can or
will be taken. And yes, I am a licensed plumber with my own business in Brisbane Australia