Removing/disabling motion controls from a PS3 controller?

I have a stock PS3 controller (one of the non-rumble ones if that matters) that is in perfect condition except the motion controls seem to be fubared in it. I wouldn’t really care, but it’s causing me problems in dark souls with the motion control gesture shortcuts that seemingly can’t be disabled. Imagine your pad/stick/whatever outputting random taunts while playing fighting games, that’s essentially what’s happening to me in dark souls.

Is there anyway to just disable the motion controls from the hardware end without effecting the controller otherwise?