Make Embedding TPL algorithm independent from AbstractTPLQuery