The basic problem addressed here is a code smell called "primitive obsession" [0]. Strange name, but worth knowing.
[0]: https://medium.com/the-sixt-india-blog/primitive-obsession-c...
[0]: https://medium.com/the-sixt-india-blog/primitive-obsession-c...
I don't mean to be pedantic. But it's quite exhausting trying to parse the meaning out of "primitive obsession is a code smell". It took me a while to figure out whether the author considered "primitive obsession" to be a good thing or a bad thing, not least because the they provided an example but not a definition.