That's why you have a cleanout port and just glue everything. I used to get leaks every few years with the setup the OP has, every time there's a new leak, I just swap everything out to black abs and glue and no more leaks. And those leaks tend to ruin the vanity and cause other damage.I think if you turned the last pipe going into the wall slightly counter clockwise and used a solid pipe you could eliminate the flexpipe. You should line everything up plumb before tightning the nuts. The problem with gluing is.... that if the pipe becomes clogged you end up having to replace all the piping.