Remove the gas tube and plug the gas port with something. In a pinch, you could cut the gas tube off before the bend, and install it upside down, to block the port.
You can also make your magazine non-detachable in some manner, to bypass the ban (no detachable magazine means not an AW under the federal law) and have all the evil features you want.