50mm to 40mm threaded low profile plumbing adapter

trying to fit a floor waste with trap in my laundry, unable to find the requisite adapter, for 50mm waste to 40mm threaded trap. Made one up in scad as per attached