remove useless includes from templates