legacy: clean up and re-organize vendor

Move all of our legacy changes and additions into one single file to keep the rest unmodified

Change-Id: Iff3ac80ecffd6d636186ffbe208ab8c8868160f7