ext: Support multiple frontends/backends in an extension