Handle multiple legacy gadgets
Make linking legacy gadget conditional