Nevermind. I figured out a work around.
I'll leave my original post for reference. Let me know if you want me to follow up with the final product.
Would anyone be able to point me towards detailed physical dimensions of the M40A3/5? Or, would an owner of said rifle be willing to do...