If you take an AR pistol with, say, a 7.5" upper, remove that, and put a 16.5" buffer without changing the lower at all, then under federal law it's still a pistol. It's a pistol with a ridiculously long barrel, but still a pistol. Off the ATF website quoting federal code:
The term “Pistol”...