Move the list element out of the templates.