Refactor BingType to avoid the usage of toString()