Remove functions from concordance and kwic templates and simplify API