Fixes: #1643 adapt_from_template has been implemented