Factorize loads in templates