You an cut both down to size.
Double check the female piece for thread length
For the male piece put a nut on the threads before you cut. Then file / grind the threads to a soft edge. Lastly unthread the nut. Make sure if spins freely before removing it all the way. If you need to thread it back in and re-file a bit do that before unthreading completely removing.