Abstract `template` module as an external dependency.