Yes, you can take off that sensor. It just activates your brake light when you hit the brakes.
There are quite a few wiring diagrams floating around on these forums for different setups. Back in the day I just took it all apart and stripped everything off it you don't need by looking at the actual connections. I am not certain about the capacitor but if memory serves me right i believe you need it.
2017 YFZ450R XC Setup - OíNeal Racing, Leatt, 4Arm Strong, Engine Ice, ASV Inventions, Ryno Power, ODI Grips, AMSOIL, Sunstar Engineering, Braking, Acerbis Plastics, Kenda Tires, SCOTT, Peak Racing Products, RadicalX, FourWerx
Follow me on Instagram, FB or YouTube at silsby103