You can get trapless attachments so you don't need the trap.
https://www.amazon.com/Wavin-BV1B-UB-HepvO-Sanitary/dp/B00NLMPLDU
https://www.amazon.com/dp/B07GGYWS4J/ref=sspa_mw_detail_2?psc=1&pf_rd_p=07d4f2af-6342-4249-a50e-928411266fe1&pf_rd_r=VFJ12JHPV6RR4WD68TQ5&pd_rd_wg=NsLQ8&pd_rd_w=8Y1oF&content-id=amzn1.sym.07d4f2af-6342-4249-a50e-928411266fe1&pd_rd_r=7a53f15e-4291-4eef-a67f-aa141a97f7f1&sp_csd=d2lkZ2V0TmFtZT1zcF9waG9uZV9kZXRhaWxfdGhlbWF0aWM&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUExTUIwMENZOE1CTjlGJmVuY3J5cHRlZElkPUExMDAyNDQ4SkZSSlBLMUVHVVZOJmVuY3J5cHRlZEFkSWQ9QTA1ODgyNjkyWUIwUU45WTUzNDM1JndpZGdldE5hbWU9c3BfcGhvbmVfZGV0YWlsX3RoZW1hdGljJmFjdGlvbj1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ==