Refactor resource template package.