Yes, writing and maintaining codebases for multiple environments is tedious, but it's part of the job description if you are providing good, solid software for more than one operating environment.
If you argue it's too tedious to maintain six codebases, that is the definition of laziness and you ironically helped reaffirm my argument.
Either suck it up or find a new, less demanding job. Programmers of yore managed to do it and we were all better off for it.