Moving precompilation of templates to deply hook.