Purpose. If the police can prove or otherwise convince a judge that the purpose of that metal tube is to serve as a gun barrel, then it's a gun barrel. Circumstances would go a long way in these cases. Say, if the barrel is mounted on a gun. If the owner is known to be making a gun. If the owner has no reason whatsoever to explain why he has a precisely rifled metal tube and a bunch of gun parts on him.