Only wrap base relations with a gateway