On typical linux distros `lesspipe` is already shipped as part of less. Though on macos it isn't, but I found out that it can be isntalled via brew. So, I have no reason to not use and can savely ditch my custom lessfilter.
To see more informations, see: https://superuser.com/a/337640/881905