Split out part of the template to make the base leaner.