Remove unnecessary nested call to appTemplate