To clarify, I think it might be possible to modify quantity to be able to set this as read-only, as @taldcroft said in the next comment down... but I think we shouldn't do that because there are some existing cases where this might be a pragmatic case to allow.